//
//  Message.swift
//  QQ
//
//  Created by zhang on 16/1/7.
//  Copyright © 2016年 jin. All rights reserved.
//
//时间lable字体大小
let timeFontSize:CGFloat = 15
//文本lable字体大小
let textFontSize:CGFloat = 16
//按钮内边距
let buttonEdgeInsets:CGFloat = 20
import UIKit
class Message: NSObject {
    var text:NSString!
    var time:NSString!
    var type:NSNumber!
        {
        //变量发生改变之后执行这个方法
        didSet
        {
            if self.type == 0
            {
                self.icon = "me"
            }
            else
            {
                self.icon = "other"
            }
        }
    }
    var hiddenTime:Bool = true
    var icon:String!
    convenience init(dic:[String : AnyObject]) {
        self.init()
        self.setValuesForKeysWithDictionary(dic)
    }
}
